Integrand size = 28, antiderivative size = 38 \[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=-\frac {2 \sqrt {a} \arcsin \left (\frac {\sqrt {a} \sin (e+f x)}{\sqrt {a-a \cos (e+f x)}}\right )}{f} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 38, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {2853, 222} \[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=-\frac {2 \sqrt {a} \arcsin \left (\frac {\sqrt {a} \sin (e+f x)}{\sqrt {a-a \cos (e+f x)}}\right )}{f} \]
[In]
[Out]
Rule 222
Rule 2853
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a}}} \, dx,x,\frac {a \sin (e+f x)}{\sqrt {a-a \cos (e+f x)}}\right )}{f} \\ & = -\frac {2 \sqrt {a} \arcsin \left (\frac {\sqrt {a} \sin (e+f x)}{\sqrt {a-a \cos (e+f x)}}\right )}{f} \\ \end{align*}
Time = 0.12 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.45 \[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=\frac {2 \arcsin \left (\sqrt {-\cos (e+f x)}\right ) \sqrt {a-a \cos (e+f x)} \cot \left (\frac {1}{2} (e+f x)\right )}{f \sqrt {1+\cos (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(82\) vs. \(2(32)=64\).
Time = 3.37 (sec) , antiderivative size = 83, normalized size of antiderivative = 2.18
method | result | size |
default | \(\frac {2 \sqrt {-\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\, \sqrt {-a \left (\cos \left (f x +e \right )-1\right )}\, \arctan \left (\sqrt {-\frac {\cos \left (f x +e \right )}{1+\cos \left (f x +e \right )}}\right ) \left (\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{f \sqrt {-\cos \left (f x +e \right )}}\) | \(83\) |
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 164, normalized size of antiderivative = 4.32 \[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=\left [\frac {\sqrt {-a} \log \left (\frac {4 \, \sqrt {-a \cos \left (f x + e\right ) + a} {\left (2 \, \cos \left (f x + e\right )^{2} + 3 \, \cos \left (f x + e\right ) + 1\right )} \sqrt {-a} \sqrt {-\cos \left (f x + e\right )} - {\left (8 \, a \cos \left (f x + e\right )^{2} + 8 \, a \cos \left (f x + e\right ) + a\right )} \sin \left (f x + e\right )}{\sin \left (f x + e\right )}\right )}{2 \, f}, \frac {\sqrt {a} \arctan \left (\frac {\sqrt {-a \cos \left (f x + e\right ) + a} \sqrt {-\cos \left (f x + e\right )} {\left (2 \, \cos \left (f x + e\right ) + 1\right )}}{2 \, \sqrt {a} \cos \left (f x + e\right ) \sin \left (f x + e\right )}\right )}{f}\right ] \]
[In]
[Out]
\[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=\int \frac {\sqrt {- a \left (\cos {\left (e + f x \right )} - 1\right )}}{\sqrt {- \cos {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 420 vs. \(2 (32) = 64\).
Time = 0.41 (sec) , antiderivative size = 420, normalized size of antiderivative = 11.05 \[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=\frac {\sqrt {-a} {\left (\log \left (4 \, \sqrt {\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1} \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )^{2} + 4 \, \sqrt {\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1} \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )^{2} + 8 \, {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + 4\right ) - \log \left (\cos \left (f x + e\right )^{2} + \sin \left (f x + e\right )^{2} + \sqrt {\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1} {\left (\cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )^{2} + \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )^{2}\right )} + 2 \, {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{4}} {\left (\cos \left (f x + e\right ) \cos \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) + \sin \left (f x + e\right ) \sin \left (\frac {1}{2} \, \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )\right )}\right )\right )}}{2 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 83 vs. \(2 (32) = 64\).
Time = 0.50 (sec) , antiderivative size = 83, normalized size of antiderivative = 2.18 \[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=-\frac {4 \, \sqrt {a} \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + \frac {2 \, {\left (2 \, \sqrt {2} - \sqrt {-\tan \left (\frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{4} + 6 \, \tan \left (\frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{2} - 1}\right )}}{\tan \left (\frac {1}{4} \, f x + \frac {1}{4} \, e\right )^{2} - 3}\right )}\right ) \mathrm {sgn}\left (\sin \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{f} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a-a \cos (e+f x)}}{\sqrt {-\cos (e+f x)}} \, dx=\int \frac {\sqrt {a-a\,\cos \left (e+f\,x\right )}}{\sqrt {-\cos \left (e+f\,x\right )}} \,d x \]
[In]
[Out]